package com.framework;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.GridPane;
import javafx.scene.paint.Color;
import javafx.stage.Stage;

public class App {

	public static class Start extends Application {

		@Override
		public void start(Stage primaryStage) throws Exception {
			
			// 使用 GridPane 来布局
			GridPane root = new GridPane();
			root.setStyle("-fx-background-color:#8A2BE2");

			
			
			
			primaryStage.setScene(new Scene(root, Color.TRANSPARENT));
			//primaryStage.initStyle(StageStyle.TRANSPARENT);// 没有标题栏
			primaryStage.setWidth(1024);
			primaryStage.setHeight(800);
			primaryStage.show();
		}
	}

	public static void main(String[] args) {
		Start.launch(Start.class, args);
	}
}
